<template>
   <app-layout>
      <app-rule
              :title="title"
              :content="rules"
              :is_title="true"
      ></app-rule>
   </app-layout>
</template>

<script>
    import appRule from "../../../components/page-component/app-rule/app-rule.vue";

    export default {
        name: "rule",

        data() {
            return {
                rules: '',
                title: ''
            }
        },

        created() {
            this.getRule();
        },

        components: {
            'app-rule': appRule,
        },

        methods: {
            async getRule() {
                const e = await this.$request({
                    url: this.$api.pick.goods_list,
                    method: 'get'
                });
                if (e.code === 0) {
                    this.rules = e.data.rule;
                    this.title = e.data.title;
                }
            }
        }
    }
</script>
